package For;
import java.util.*;
public class Demo01 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int score=0;
        int sum=0;
        for (int i = 1; i <+5 ; i++) {
            System.out.println("请输入"+i+"个成绩");
            score=scan.nextInt();
            if (score<0){
                System.out.println("输入错误");
                break;
            }
            sum+=score;

        }

    }
}
